<?php $this->load->view('left'); ?>

<h2>All Categories</h2>
<br />
<br />
<br />
<br />

<table>
<?php foreach($category as $cat):?>
<tr>
        <td><?php echo anchor(site_url('manage/select_category_list/'.$cat['cate_id']),$cat['bc'])?></td>
        <td><!--<?php echo anchor(site_url('manage/edit_category/'.$cat['cate_id']),'Edit')?>--></td>
        <td><!--<?php echo anchor(site_url('manage/delete_category/'.$cat['cate_id']),'Delete')?>--></td>
</tr>
<?php if(isset($cat['se_cate'])):?>
<?php foreach($cat['se_cate'] as $val):?>
<tr>
        <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <?php echo anchor(site_url('manage/select_category_list/'.$val['cate_id']),$val['bc'])?>
        </td>
        <td><?php echo anchor(site_url('manage/edit_category/'.$val['cate_id']),'Edit')?></td>
        <td><?php echo anchor(site_url('manage/delete_category/'.$val['cate_id']),'Delete')?></td>
</tr>
<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>

<!--
<?php foreach($category as $cat):?>
<tr>
        <td><?php echo anchor(site_url('manage/select_category_list/'.$cat['cate_id']),$cat['bc'])?></td>
        <td><?php echo anchor(site_url('manage/edit_category/'.$cat['cate_id']),'Edit')?></td>
        <td><?php echo anchor(site_url('manage/delete_category/'.$cat['cate_id']),'Delete')?></td>
</tr>
<?php endforeach;?>
-->
</table>

<?php $this->load->view('right'); ?>
